package com.ruibang.glass.quality.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-10-19  14:29
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class SpcProcessDataReq implements Serializable {

    @ApiModelProperty("下规范限")
    @NotNull(message = "下规范限不可为空")
    private BigDecimal lowerSpecLimit;

    @ApiModelProperty("上规范限")
    @NotNull(message = "上规范限不可为空")
    private BigDecimal upperSpecLimit;

    @ApiModelProperty("目标值")
    private BigDecimal target;

    @ApiModelProperty("区间值")
//    @NotNull(message = "区间值不可为空")
    private BigDecimal interval;

    @ApiModelProperty("子组大小")
    @NotNull(message = "子组大小不可为空")
    private Integer subgroupSize;

    @ApiModelProperty("样本数据")
    @NotNull(message = "样本数据不可为空")
    private List<BigDecimal> data;
}
